-- GENERATED SPELL FOR [Blue Drakonid] --


function spell0_14261(pUnit, Event) --@Brood Power: Blue,n/a--
pUnit:FullCastSpellOnTarget(22559,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14261', 6325, 1)
end

function spell1_14261(pUnit, Event) --@Summon Player,n/a--
pUnit:FullCastSpellOnTarget(20477,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14261', 583, 1)
end

function Sorts_14261(pUnit, Event)
local choix_sorts_14261 = math.random(0, 1)
if choix_sorts_14261 == 0 then
pUnit:RegisterEvent('spell0_14261', 1, 1)
end
if choix_sorts_14261 == 1 then
pUnit:RegisterEvent('spell1_14261', 1, 1)
end
end

function mob14261_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14261', math.random(1500, 3000), 1)
end

function mob14261_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14261_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14261_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14261, 1, 'mob14261_Action')
RegisterUnitEvent(14261, 2, 'mob14261_Leave')
RegisterUnitEvent(14261, 3, 'mob14261_Kill')
RegisterUnitEvent(14261, 4, 'mob14261_Die')
